<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<script>
	
</script>
<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="/m2/g1.im" method="post">
        <input type="hidden" name="pageSize" value="${page.pageSize}">
        <input type="hidden" name="pageCurrent" value="${page.pageNo}">
        <input type="hidden" name="orderField" value="${page.orderField}">
        <input type="hidden" name="orderDirection" value="${page.orderDirection}">
        <ul class="bjui-searchBar">
            <li class="pull-right">
                <div class="btn-group">
                </div>
            </li>
        </ul>
    </form>
</div>
<div class="bjui-pageContent">
    <table class="table table-bordered table-hover table-striped table-top" data-layout-h="0">
        <thead>
            <tr class="headtr">
            	<th>商品名称</th>
            	<th width="50px">指导价</th>
                <th width="70px">数量</th>
                <th width="100px">预定人</th>
                <th width="150px">预定时间</th>
                <th>收货地址</th>
                <th width="100px">送货日期</th>
                <th width="50px">状态</th>
            </tr>
        </thead>
        <tbody>
        	<c:forEach var="us" items="${page.results }">
	            <tr class="bodytr">
	            	<td>${us.goodsTitle }</td>
	            	<td>${us.price }</td>
	                <td>${us.number}</td>
	                <td>${us.userName}</td>
	                <td><fmt:formatDate value="${us.createTime }" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate></td>
	                <td>${us.address}</td>
	                 <td><fmt:formatDate value="${us.arriveDate}" pattern="yyyy-MM-dd"></fmt:formatDate></td>
	                 <td><c:if test="${us.status==0}">未处理</c:if><c:if test="${us.status==1}"><font color="green">成功</font></c:if><c:if test="${us.status==2}"><font color="red">失败</font></c:if>  </td>
	            </tr>
	            
            </c:forEach>
        </tbody>
    </table>
    <div class="bjui-footBar">
        <div class="pages">
            <span>每页&nbsp;</span>
            <div class="selectPagesize">
                <select data-toggle="selectpicker" data-toggle-change="changepagesize">
                    <option value="${page.pageSize }">${page.pageSize }</option>
                    <option value="30">30</option>
                    <option value="60">60</option>
                    <option value="120">120</option>
                    <option value="150">150</option>
                </select>
            </div>
            <span>&nbsp;条，共${page.totalRecord } 条</span>
        </div>
        <div class="pagination-box" data-toggle="pagination" data-total="${page.totalRecord}" data-page-size="${page.pageSize }" data-page-current="${page.pageNo }">
        </div>
    </div>
</div>

<!-- Modal -->
